import { getAllRoleList } from '/@/api/system/system';
import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';
import { DescItem } from '/@/components/Description/index';

export const columns: BasicColumn[] = [
  {
    title: '用户名',
    dataIndex: 'user_name',
    width: 120,
    align: 'left',
  },
  {
    title: '真实姓名',
    dataIndex: 'real_name',
    width: 120,
    align: 'left',
  },
  {
    title: '手机号',
    dataIndex: 'mobile',
    width: 120,
  },
  {
    title: '创建时间',
    dataIndex: 'create_time',
    width: 180,
  },
  {
    title: '角色',
    dataIndex: 'role_name',
    width: 200,
    align: 'left',
  },
  {
    title: '备注',
    dataIndex: 'remark',
    align: 'left',
  },
];

export const refundData = {
  a1: '1000000000',
  a2: '已取货',
  a3: '1234123421',
  a4: '3214321432',
};

export const orderFields: DescItem[] = [
  {
    field: 'drugstoreName',
    label: '单位名称',
    span: 2,
  },
  {
    field: 'consignee',
    label: '联系人',
  },
  {
    field: 'consigneePhone',
    label: '联系人电话',
  },
  {
    field: 'consigneeAddr',
    label: '收货地址',
    span: 2,
  },
  {
    field: 'invoice',
    label: '发票类型',
  },
  {
    field: 'invoicePDF',
    label: '发票链接',
  },
  {
    field: 'orderRemarks',
    label: '订单备注',
    span: 2,
  },
  {
    field: 'getUser',
    label: '拣货员',
  },
  {
    field: 'getTime',
    label: '拣货时间',
  },
  {
    field: 'scanUser',
    label: '复核员',
  },
  {
    field: 'scanTime',
    label: '复核时间',
  },
  {
    field: 'isFirst',
    label: '是否首营',
  },
  {
    field: 'isout',
    label: '是否生成金蝶出库单',
  },
];
